<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3" xmlns:head="http://www.w3.org/1999/html">
<head th:include="public/public_css::public_css ('箱处理')" />

<body style="background-color: #f2f2f2;">
<div class="layui-fluid larry-wrapper">
    <div class="layui-card">
        <div class="layui-row layui-col-space30">
            <div class="layui-col-xs24">
                <form class="layui-form layui-card-header  layui-card-header-auto" id="searchForm">
                    <div slot="header" class="clearfix">
                        <span style="line-height: 36px;">箱处理</span>
                    </div>
                </form>
                <!--列表-->
                <section class="panel panel-padding layui-card-body">
                    <div  class="box-button">
                        <button class="  layui-btn layui-btn-normal  layui-btn-xs editRow" style="width: 60px;height: 30px;" onclick="jpx();">集拼箱</button>
                        <button class="  layui-btn layui-btn-normal  layui-btn-xs editRow" style="width: 60px;height: 30px;" onclick="hx();">换箱</button>
                    </div>
                </section>
            </div>
        </div>
    </div>
</div>
</body>


<div th:include="public/public_js::public_js"></div>
<div th:include="public/public_btn::public_btn"></div>
<style type="text/css">
    .box-button {
        text-align:center;
        width:100%;
        height:100%;
        margin:0px;
    }
</style>
<script th:inline="javascript">
    var functions = [[${functions}]];
    layui.use(['list', 'layer', 'zzpUtils', 'jquery', 'laydate', 'tablebutton'], function () {
        var zzpUtils= layui.zzpUtils,
            $ = layui.jquery,
            laydate = layui.laydate,
            tablebtn = layui.tablebutton;
        tablebtn.buildOnClick({
            type: 1,
            temp: $("#function_tpl"),
            functions: functions.headBtn,
            row: null,
            event: {
                searchEvent: function(){
                    zzpUtils.refreshTable("#table");
                },
                /*新增*/
                addEvent: function (data) {
                    add();
                },
            }
        });

    });
    //集装箱
    window.jpx = function () {
        layer.open({
            type: 2,
            area: ['90%', '100%'],
            content: "/zxsswms/Consolidatibn/addJpx",
        });
    }
    //换箱
    window.hx = function () {
        layer.open({
            type: 2,
            area: ['90%', '100%'],
            content: "/zxsswms/Consolidatibn/addHx",
        });
    }
</script>
</html>